module.exports = function(router) {
    router.map({
        '/': {
            component: function(resolve) {
                require(['../views/activities.vue'], resolve);
            },
            title: "露营活动"
        },
        '/activitiesdetail/:index': {
            name:"activitiesdetail",
            component: function(resolve) {
                require(['../views/activities.detail.vue'], resolve);
            },
            title: "活动详情"
        },
        '/sendactivity': {
            component: function(resolve) {
                require(['../views/activity.send.vue'], resolve);
            },
            title: "发布活动"
        },
        '/enroll/:id': {
            name:"enroll",
            component: function(resolve) {
                require(['../component/enroll.vue'], resolve);
            },
            title: "报名"
        },
    })
}
